/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const reportRouter = {
  path: '/report',
  component: Layout,
  name: '统计报表',
  meta: {
    title: '统计报表',
    subtitle:'统计',
    icon: 'menu_report',
    permissions:['orderReport.query','receiveReport.query']
  },
  children: [
    {
      path: '/orderReport/list',
      component: () => import('@/views/orderReport/list'),
      name: 'orderReport-list',
      meta: { title: '订单统计报表',subtitle:'订单', icon: 'menu_report',permissions:['orderReport.query']}
    },

    {
      path: '/receiveReport/list',
      component: () => import('@/views/receiveReport/list'),
      name: 'receiveReport-list',
      meta: { title: '收款统计报表',subtitle:'收款', icon: 'menu_report',permissions:['receiveReport.query']}
    },
    // {
    //   path: '/setmeal/edit',
    //   component: () => import('@/views/setmeal/edit'),
    //   name: 'product-edit',
    //   meta: { title: '修改套餐', icon: 'menu_product' },
    //   hidden: true
    // },
    // {
    //   path: '/report/list',
    //   component: () => import('@/views/report/list'),
    //   name: 'report-list',
    //   meta: { title: '其他分析报表',subtitle:'统计', icon: 'menu_report',permissions:['report.query']}
    // },
  ]
}
export default reportRouter
